package zbl.c0.lexer;
/**
 * 
 * @author 朱伯龙
 *    Tag类：记录了所有该文法中出现的保留字以及终结符号，对应的(int) tag 属性值
 *    所有单目运算符，分割符号，以及赋值运算符号的tag就等于它们所对应的ASCII码值
 *    注意：   其他预留词法单元的 tag 不能与以上符号的tag发生冲突！！！！！！
 */
public class Tag {

	//标记
	public static final int ID = 256;			//  表示  标识符
	public static final int NUM = 257;			//  表示  整数
	public static final int Strings = 258;		//  表示  字符串常量
	
	
	//保留字
	public static final int CONST = 266;		//	const
	public static final int INT = 267;			//	int
	public static final int VOID = 268;			//	void
	public static final int MAIN = 269;			//	main
	public static final int IF = 270;			//	if
	public static final int DO = 271;			//	do
	public static final int WHILE = 272;		//	while
	public static final int RETURN = 273;		//	return
	public static final int SCANF = 274;		//	scanf
	public static final int PRINTF = 275;		//	printf
	
	//加、减、乘、除、赋值运算符
	//public static final int PLUS = 276;				//	+
	//public static final int MINUS = 277;				//	-
	//public static final int MUL = 278;				//	*
	//public static final int DIVIDE = 279;				//	/
	//public static final int ASSIGN = 280;				//  =   赋值运算
	
	//分割符
	//public static final int L_B_BRACKET = 281;		//	{
	//public static final int R_B_BRACKET = 282;		//	}
	//public static final int L_BRACKET = 283;			//	(
	//public static final int R_BRACKET = 284;			//	)
	//public static final int SEMICOLON = 285;			//	;	分号
	//public static final int COMMA = 286;				//	,	逗号
	//public static final int D_QUOTATION = 287;			//	"	双引号
	
	//关系运算符	
	public static final int EQUAL = 288;				//	==	相等关系	
	//public static final int LARGER = 289;				//	>
	//public static final int SMALLER = 290;			//	<
	public static final int NOT_EQUAL = 291;			//	!=
	public static final int LARGER_EQUAL = 292;			//	>=
	public static final int SMALLER_EQUAL = 293;		//	<=
	
	
}
